package com.fastCms.customer.frame.controller;


import com.fastCms.business.bim.pojo.po.ScenePO;
import com.fastCms.business.bim.pojo.vo.BannerVO;
import com.fastCms.business.frame.response.ApiResponse;
import com.fastCms.business.frame.response.ResponseUtil;
import com.fastCms.business.frame.service.BannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author qua
 * @since 2024-05-23
 */
@RestController
@RequestMapping("api/banner")
@Api(value = "ApiBannerController", tags = "C端-轮播图管理")
public class ApiBannerController {
    @Resource
    private BannerService bannerService;

    @PostMapping("/showList")
    @ApiOperation(value = "轮播图列表", notes = "不分页,根据业务场景查询")
    public ApiResponse<List<BannerVO>> showList(@RequestBody ScenePO param) {
        List<BannerVO> result = bannerService.showList(param);
        return ResponseUtil.success(result);
    }
}

